import Mock from 'mockjs'

let postApi = {
  // 虚拟用户信息-添加
  addVirtualUser: {
    "success": true,
    "message": "操作成功！",
    "code": 200,
    "data": [],
    "timestamp": 1650002674767
  },
  // 虚拟用户信息-删除
  deleteVirtualUser: {
    "success": true,
    "message": "操作成功！",
    "code": 200,
    "data": [],
    "timestamp": 1650002674767
  },
  // 虚拟用户信息-修改
  updateVirtualUser: {
    "success": true,
    "message": "操作成功！",
    "code": 200,
    "data": [],
    "timestamp": 1650002674767
  },
  // 投票信息添加
  addVotingInformation: {
    code: 200,
    data: {}
  },
  // 投票信息修改
  updateVotingInformation: {
    code: 200,
    data: {}
  },
  // 查询活动详情
  queryVotingInformation: {
    code: 200,
    data: {
      activityId: "0001", //投票ID
      title: "投票1", //投票标题
      introduction: "投票描述", // 描述
      type: 2, // 1 单选 2多选
      isShareable: 1, //是否可以分享  0:不是,1:是
      optionDTOList: [{
          activityOptionId: "001", //选项id
          optionName: "选项1", //选项名
          voteNumber: 10, //投票人数
          isVote: true, // 是否投票
          votingRecordDTOList: [{
            wxNickName: "天宇",
            wxPhoto: "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJA0W6fR79MMNGHrjPXyBNchQ4JzeHiagudDlnpTTB77RjKyIYxibnkZnHShyvsGuRLZgLjibBliapefg/132",
          }]
        },
        {
          activityOptionId: "002", //选项id
          optionName: "选项2", //选项名
          voteNumber: 5, //投票人数
          isVote: false, // 是否投票
          votingRecordDTOList: [{
            wxNickName: "天宇",
            wxPhoto: "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJA0W6fR79MMNGHrjPXyBNchQ4JzeHiagudDlnpTTB77RjKyIYxibnkZnHShyvsGuRLZgLjibBliapefg/132",
          }]
        }
      ],
      isShield: 0, //是否匿名投票 0:不是,1:是
      state: 0, //  0: 草稿，1 已结束
      isVoted: true, // 是否投票
      voteNumber: 15, //投票人数
      endDate: "2022-04-13 15:50", // 截止时间
      groupName: "01班级", // 截止时间
      isCreated: true, // 是否是创建人
    }
  },
  // 提交投票
  submitToVote: {
    code: 200,
    data: {}
  },
  // 发送邮箱
  sendEmail: {
    code: 200,
    data: {}
  },
  // 删除投票
  deleteVote: {
    code: 200,
    data: {}
  },
  // 删除班级
  deleteUserGroups: {
    code: 200,
    data: {}
  },
  // 禁用班级成员
  disableMember: {
    code: 200,
    data: {}
  }
}

export default postApi;